package controler.userCommands;
import controler.A_State;
import controler.A_UserCommand;
import view.events.LevelEditorViewOtherEvent;

/**
 * @author Damien Mabin
 */

class ChangePhysicProperty extends A_UserCommand 
{
	private var m_Type : E_PhysicPropertyType;
	private var m_Value : String;

	public function new(_NextState:A_State, _Type:E_PhysicPropertyType, _Value:String) 
	{
		super(_NextState);
		m_CanBeUndo = false;
		m_Stackable = false;
		
		m_Type = _Type;
		m_Value = _Value;
	}
	
	override public function DoCommand():Void 
	{
		super.DoCommand();
		A_UserCommand.s_Model.CTRL_ChangePhysicProperty(m_Type, m_Value);
	}
}